// To parse this JSON data, do
//
//     final userInfoModel = userInfoModelFromJson(jsonString);

import 'dart:convert';

UserInfoModel userInfoModelFromJson(String str) => UserInfoModel.fromJson(json.decode(str));

String userInfoModelToJson(UserInfoModel data) => json.encode(data.toJson());

class UserInfoModel {
  int uuid;
  String phone;
  String token;
  String name;
  String avatar;

  UserInfoModel({
    required this.uuid,
    required this.phone,
    required this.token,
    required this.name,
    required this.avatar,
  });

  factory UserInfoModel.fromJson(Map<String, dynamic> json) => UserInfoModel(
    uuid: json["uuid"],
    phone: json["phone"],
    token: json["token"],
    name: json["name"],
    avatar: json["avatar"],
  );

  Map<String, dynamic> toJson() => {
    "uuid": uuid,
    "phone": phone,
    "token": token,
    "name": name,
    "avatar": avatar,
  };
}
